package com.hengpeng.itfin.service.impl;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;

import com.hengpeng.common.configuration.ConfigProvider;
import com.hengpeng.common.configuration.ConfigProviderFactory;
import com.hengpeng.common.constant.Constant;
import com.hengpeng.itfin.persist.DaoFactory;
import com.hengpeng.itfin.service.ServiceFactory;

public class BaseServiceImpl {
    protected Log logger = LogFactory.getLog(this.getClass());

    @Autowired
    protected DaoFactory daoFactory;

    @Autowired
    protected ServiceFactory serviceFactory;

    public final static ConfigProvider<String> cp = ConfigProviderFactory
            .getInstance(Constant.HP_COMMON_PROPERTIES_FILEPATH);

    public String page_return_url = cp.getConfigByPrimaryKey("page.return.url");

    public String service_notify_url = cp.getConfigByPrimaryKey("service.notify.url");

}